Added solutions to exercises 3.7 and 3.8