Create a generic Node class and make use of it.