Answered HW1 problem 3