Life not going as planned for us can throw anyone into a depressed state because it's impossible for us not to think about the things we couldn't achieve.
It can be difficult coping without a job and I can relate to that especially when you have a lot of things to achieve and can't do any. I am happy things worked well for you and it was easy to put that depressed state behind you.
Yesso... just getting something to do, and having something to distract me was all I needed. And it worked for me.