Solutions to exercises from Scala for the Impatient