solved #29. I <3 Haskell. New favorite language.