finished problem three