Used @component annotation to specify custom repository implementation.
Refactored code.
Removed unsued code.
updated code