Finishing first scala problem.
Solving exercise 2. Not the best way, but...