Added solution for exercise 2.1