HW1 from Functional Programming in Scala - EPFL course