made the code a bit more logically through renaming Node to data"