added example of using try-catch to hanle errors