No need for `+=` here; `+` will do; `total` is deallocated at the end of each block and `m` is copied into the new value for `total`