Implemented Core Data with Methods