Refactored input_sudents to use private method to cycle through each student attribute