finished problem 2a
started prob 2b and 3