revising finalreport - writing apply methods of aggregation functions