monitoring changes in a class