 It is based on the novel by Nikolai Gogol.The first version of the work was finished on 2 July 1915, but Janáček later revised it and made substantial changes.The second, almost complete, version was finished on 29 March 1918.