example of binding object attributes and functions that react to changes?