and other best pracitces like: capacity and "index" are ints and not unsigned int (google's recomendation). It is easier to detect underflow bugs like this plus other minor improvements