Genearte classes