Completed Scala day 2 exercises