easy 146 in haskell
ease 146 in javascript