added example catch an exception