An optimal control strategy for a sinking fund problem