reformat contract class