some pseudocode

Put in some pseudocode.
Still need to loop through all the planets.
Some aesthetic changes.