update class 3 exercise