tommy : add save logic in repository.