Solved problem 005.