Wrote Candidate class