assignment1 - problem3