ex3 bst