Beginning with pseudocode

http://www.codeskulptor.org/#user38_3a8Qp4d63N_1.py