CS 270 Code