Evernote coding challenge / Scala learning exercise