coding by xiong and wang