Code from Scala dojo on Thursday 17th of Jan