Lab 2 Sample Code