trying to add OO structure to voting