On 15 August 1885, he traveled to Baku with Erhard Sandgren and instructed him there for seven months, and he himself began to learn the Latin, French, German, Persian, Russian, English and Tatar languages.