finished the pcntl class