Solving problem 119