finished problem 06