added example that throws errors