7 languages: scala day 2 exercises