run RNN and build FFNN