written the code for editing the task. CommandEdit.