code example for registering a bundle