Code for cs184 projects