First implementation about Max and Average rainfall