Understanding dark energy