generators code
WIP: rewriting sample