solution for problem 90