Added a field in the node_t struct, to store the return type for the methods