I believe `centers` can be a val here instead of a `var`.