generator model for school project