beginning to implement average