Making a couple of changes. Drawing the nodes is now a subclass function. The parent class just writes out the numerical values.