Chapter 3: Types and classes

@laurocaetano just finished the exercises from chapter 3.