added in some stuff to lab3 pcomp