Add attr_did_change method for notifying attributes dynamically