update class demo