for cpsc 310 lab2 part 4