Refactored and added methods to Legislator class