Corrected my previous commit. Now shows correct way of using try-catch