Solution for Lesson 5.