added function field to pcb

also added execute_process method which executes
the function stored in a pcb