done HW4 questions 1-2