generate Class