PID struct to class.