added average score function