added edit method

- edit takes in 2 Task objects
- first is the task to be edited which is deleted
- second is the edited task which is added