What reforms were implemented during the Tang and Song dynasties? 20 points!!! And brainiest

A.Forming different departments and ministries in the government to separate power
B.Creating a group that would oversee the government and hold it accountable
C.Introducing civil service exams, which would find the most qualified people to work
D.All of these