Solve exercises of lesson 6