[james, aubrey] refactored smoothing algorithm into customer model