Added solutions to exercises 3.1, 3.3 and 3.4