Implement edit repository