Completed Scala Day 3 exercises