best_marks function added and defined