as a young man he moved to st petersburg to study residing there for six years