solution for problem 83