Changed all atributes from class Node to private