changed node struct to class