added average age calculation in last task