Change Repository to Provider