started pseudocode of exercise 4
progress on exercise 4