Core Data environment setup

setup up the core data environment