First implementation of a recurrent layer, with example.