Solutions to exercises in scala-for-the-impatient