Found it. After looking over the code again with some fresh eyes, I realized that in the function “get_class_average” I was calling “get_class_average” instead of “get_average” so there was some weird loop stuff going on. I was trying to call the function within itself.