How recurrent neural nets work