Example repository pattern