added more code for the repo model