Registers a class as an observer and defines a callback.
Run the script, then:
Pressing <Enter> will exit.
<Enter>