Made $repo an object attribute