Implemented edit method