Gravity as information exchange