edited all functions in student-script.js