assignment 5 partial

completed first 2/3 of question 3