changed method signature for get_total_score and return type for compute_scores and implemented views for increasing speed in get_total_score