[lab3-part3-done] elaborate codes: remove printf/cout codes, which help to debug.