Updated classes and added a "factory" for repositories