[Haskell-beginners] Function to compute the mean