 Between 1864 and 1873 he was head of a boys' hostel in Stellenbosch where a third of the boys were the sons of Rhenish missionaries.Here Alheit showed great aptitude in the teaching of mathematics.Another hostel opened in 1860 and was called the Rhenish Institute for the daughters of Rhenish missionaries.