Finished cpp wt typedef struct node