 It is clear that whether the structure of the Organon was appropriate for Arabic logic treatises was contested at least until the end of the thirteenth century. At the same time Hillî was setting out his logic according to the Avicennan outline of the Organon (see section 1.5.2 above), Shamsaddîn as-Samarqandî (d. c. 1310) was writing a book laid out after the fashion described by Ibn Khaldûn in the text above, with one major difference. Samarqandî concluded his Qistâs al-Afkâr with a long section covering what he called “the etiquette of debate” and fallacies. He consciously adopted the etiquette of debate from treatises on forensic argument, and he told his readers that he intended it to replace study of the Topics and the Sophistical Fallacies.