Add Repository Factory class