converting to a node project. adding an inherits method.