Add examples for chapter 4: Classes and Interfaces