Revision of the main code representing the nodes as classes.