My trying out bits from The Stairway Book (Programming Scala)