Working on singleton and swipe for storing data