a ball gas three dimensions