Moved Node into a nested class.