Added possible clause to calculate average age. Also needs to be tested.