Add getters and setters for Node class