Working with collections in Haskell