soution to problem 59