part 4 of cpsc 310 lab 2