problem 4 partially completed