What problems existed in ancient china before and during the han dynasty? what solutions did confucianism offer to solve those problems?.