Couldn't we simplify:
```
set(numsuccess > half);
```