Solution for Lesson 8.