added update/remove functionality in example