Question 3a

Finish pseudo