optimized the get_average method; still needs a lot of work