Made generic repository