Use for loop for registering and instantiation