adding a Node class