Contract in repository