finished problem 1.a and 1.b