add calculate_score to table class