added function for calculating mean age by region