CS 290 Code