Added redo command

Implemented the redo command.