CS184 exercise