Why was the Han dynasty successful?