skeleton code to remove a node from bet