adding try-catch examples