Add constructor to repository Method