implemented erasing; tested.