Apply the following two changes to both the `LockedMyBox` and `MyBox` classes:
1. Remove the `duplicate()` method, as it is no longer needed.
2. Add a new method `peek()` on both classes, which retrieves the contents inside the box. In the case of `LockedMyBox`, this method should throw an exception.
