Dostoevsky had to write very quickly to finish both "The Gambler" and "Crime and Punishment". Anna Snitkina, a stenographer whom he later married, helped him very much. The first part of "Crime and Punishment" appeared in January 1866 in "The Russian Messenger". The last part was published in December 1866.