For lab 2 of CPSC 310