Updated class 4 examples. Fixed some errors.