First implementation of Node class