add clss for chapter 3, exercise 3