he studied law in kazan