coredata and managed objects implemented but not yet tested