CS369 Chapter 4