added in lab 4 pcomp