Set up repo class properly