Added solutions to exercises 1.38 and 1.39