made Node a struct