Repository implement. WIP