changed node to class rather than struct