Solution for Lesson 3.