Refactored the code: Variable for Student Numbers and Interpolation.