changed score_calculations script to a class