Solve problems 6-7,9 using Haskell.