solution for problem 93, adding problem 94