Implemented Repository Pattern for bugs