Prepare class definition