Code of CS140 of Stanford University