changed some stuff, added a Node class