adding voter model code