Implement redo. Pass test 47.