Add examples and exercises from ch 3 on types and classes.