At the office, Einstein evaluated patent applications for electromagnetic devices. He got the hang of the job, giving him some time to ponder on the transmission of electrical signals. At the polytechnic school, Einstein had been studying Scottish physicist James Maxwell's theories. From studying these theories, Einstein discovered the theory of reality. As this started to spread, Einsteins marriage fell apart and Einstein ended up divorcing Mileva in 1919. Einstein agreed to give her the money whenever he won a nobel prize.