adding initial rnn code