avoid integer overflow possibility
denotes booleans with bool keyword and true/false values
Enlists bool for boolean variable. Adds unsigned to integer variable used for bit operation.