Having trouble with instantiating the Node objects. Don't know why