Solved exercises 2.2