Creation of classes Node and Stack