rendered paste bodypackage PA4;public class Node { Investment identifier; double value; boolean isRoot; Node left; Node right; public Node() { this.setIdentifier(null); } public Node(double value) { this.setValue(value); } public Node(Investment identifier) { this.setIdentifier(identifier); this.setValue(identifier.getValue()); } public Investment getIdentifier() { return this.identifier; } public void setIdentifier(Investment investment) { this.identifier = investment; } public double getValue() { return this.value; } public void setValue(double value) { this.value = value; } public Node getLeft() { return this.left; } public boolean isRoot() { return isRoot; } public void setRoot(boolean isRoot) { this.isRoot = isRoot; } public void setLeft(Node toLeft) { this.left = toLeft; } public Node getRight() { return this.right; } public void setRight(Node toRight) { this.right = toRight; }}