Refer: sanjaymadnani.wordpress.com
Singleton with serialization. (common mistake).