my implementation of a PID-controller