added example with errors