Removed public modifier from node class.