Fixed example

The example was still using the dynamic allocation of the PID, which was removed.