Sentence:  Union soldiers at times used it for sleeping quarters to escape from the rain or other inclement weather , and some of them left momentoes of their stay by <WSD>carving</WSD> their names and small tokens on its walls and beams . 
Meaning of the word marked with <WSD> tags:  form by carving