little changes on pq1.cpp example