Here's a solution to the Five Lines puzzle that ends where it starts. Please excuse my poor computer artistry, you can probably draw up a better image.