Implemented Try-catch-finally