Savings heuristic

WIP
Line is too long. [87/80]