update diem class