added commands to pset.cls for better generalization