Translate classical Chinese
General Li Guang is from Ji Cheng County, Longxi. His ancestor was Li Xin, who was a general in the Qin Dynasty. He was the general who captured Yan Taizi Dan. His home used to be in Li Huai County, but later he moved to Ji Cheng. Li Guang's family has been learning archery for generations. In the 14th year of Emperor Wendi (BC 166), Xiongnu invaded Xiaoguan on a large scale. Li Guang, as the son of a good family, joined the army to fight the Huns. Because he was good at riding and shooting, he killed many enemies' heads, so he was appointed as the deputy commander of Hanting. Li Guang's cousin Cai Li was also appointed captain. Both of them served as official attendants on Wuqi, with an annual salary of 800. Li Guang used to travel with the emperor. He often took the lead, resisted the enemy and killed wild animals. Emperor Wen said, "What a pity! You haven't had a chance yet. If you are catching up with the Gaozu era, is it still a problem to seal a family? "