progress on pseudocode for exercise 4 and some coding down