Added Chapter 2: Types and Functions