Refactor total_students into it's own method.