Extra exercise: refactors code pushing input into student array into a method called add_student