Add interface for each repository

Update pattern repository and implement interface for this