I think this can look cleaner using the `powi()` *method* instead of the `pow()` function.