solving problem 015