introduce how to use coredata to manage data