mogenerator script example