done up through calculateAverageAsInt