A simulation example presented in CS277 at Stanford.