Added second way to aggr and calc mean
Changes according second way to aggr and mean data