Exmple generator code