how matter works