Observer extension for class.