adding repository model