A simple example of how to implement the repository pattern