How does an entity interact with its environment?