completed problem 5