Create get_scores function