Scala Day 2 exercises 1,2