used core data to store todos