I'm trying a thing with the repository pattern