Simple programs in Haskell