Added class Participant and changed other functions.