modify constructor of problem repository