implemented catch operation and all test are green