How are structure and function related in living things