Now history data is successfully stored in NSUserDefaults.
Still desirous to add some more functions such as swipe to delete.