modified class assignment