added voter model code