generate the activity class