Prac7: Finished Question 3 code.
Merging is hard and nitpicking. Only missed out by a few minutes...