BST example completed