Scala programs from Martin Odersky's class and other sources