Solved exercise.