new method to add multiple resources to the container