implemented voting system class with table