Simple aggregation function needed for project - baby step