CS 351 Code