solve problem 005