Implemented add-factoid function