Explain how density and matter are connected.