added addStory function