Demonstration of try-catch for learning