whereas the later tan dynasty had efficiently given china the labyrinthian bureaucracy it was still saddled with , confucius had given it an ideal of both morality and practical government that had proven to be almost impossible to achieve .