Sample Code for CS221