How to design a marathon course