Almost working rnn.