What was Einstein doing when he got a clear understanding of the theory of relativity?

**********