Solution for Lesson 2.