Added execute and undo functionality to DeleteCommand