• How to add an observer to a Canvas class: