Lab exercise 4 for csci3308 at CU boulder