problem2 for haskell
scala readme
problem 2 in scala