finished problem 3

finished probelm 3, working on problem 4