Beginning to use core data. WIP