Completed problem 29