Dan had $ 3 left with him after he bought a candy bar. If he had $ 4 at the start How much did the candy bar cost?