layed out the core data layer.