Rewrite to use let