Added another detail in undo() method