CS369 Chapter 6