Changed generated classes by adding clone() and create() methods