solutions for lesson 4 tasks