cpsc 310 - lab 2