Rearrange for optimization, fun, and profit