Gravity is partly responsible for the structure of the universe