It is probable that Dostoevsky used his friend Vladimir Solovyov's character for Alyosha. Vladimir Solovyov was a Russian poet and philosopher who was very generous, even giving away his clothes to people in the street.