Modified C code to add participant to the class.