Improve MLP Bigram code