Added Exercise 2.1, 2.2 and 2.3. Fixed problems with docstrings.