Lesson 7. OPTIMAL SOLUTION