solving problem 69