implement any three aggregate function with example