hw1 problem 5
hw1 problems 1 and 3