first crack at question 3 - still working at it :(