handles example from question