Upload HW1, Problem 3
hw 1 problems 3 and 4