Merge Mark Wutka's Haskell solutions