Added Registry class for creating registries more easily