start adding new aggregation algorithm: average now based on weight.