adding try catch example