creating the instance generator
examples