Added application class and singleton fot storeing data