Node.class add method implmented