add accepted ITP_1_1_B in C++