simplified the example