Refactor code now students is a class variable