Generated class hierarchy and added vote document