Modified code to interactively add student names