Implementing CoreData model from API