[Haskell-beginners] Iterating through lists