Added get functionality to repository