Assignment-10 destructors and try/catch exceptions