changed ProgressBar Sample so that it uses .observe()

This change was suggested by @wkeese in #390.
Note that I didn't remove the emission of the event, so this isn't fixing #390.