Made generic node class