completed pseudocode q's 1-6