Make node.id and node.class into proper node methods