updating script to use existing function from candidate class
Merge pull request #6 from rathisekaran/script_update

updating script to use existing function from candidate class