Life, chemistry and cognition