Added solutions for exercises 10-12.