hw2problem3solved