finalized commit 3 edit function have to be implemented