animal intelligence -- and living network intelligence -- is based on trial and error and then selecting what works by repeating it ( like neurons that fire in response to a stimulus learn to fire in response to that stimulus in the future ) .