Solve exercises of lesson 5 reqgarding specs