callback-on-assignment sample