Beginning of HW9 and fix for BST
Start of HWs 9 and 10