getAverageAgeOfCast method written