#27. Converted Node and NodeFactory into classes.