Added a variation of ex23 that uses a proper generator passing