setting up Node class to organize code