rewrote the registry file to create instanses of Registry