problem 7B finished