Samples of chapter 3: Classes