created basic voting system