Finished project requirements. But the `dsMean` is obtained  in an awkward way