I wasn't entirely sure what `n` was used for when I refactored. Is there a better variable name?