Combined individual answers in Sol2.hs [Exercises Chapter 2]