starting to understand basic haskell