Added intefaces for repository and model