finished problem 2c