solution to problem 160