Implementing an LSTM Model