remade Candy class connections, working now with core data creation