Using boolean instead of int for boolean variables