Improved scala solution
Fixed SBT scalac options
Added implicit import