basic pgm stuff to learn haskell