Full contract class.