king solomon, the writer of ecclesiastes, had wealth beyond measure, wisdom beyond any man of his time or ours, hundreds of women, palaces and gardens that were the envy of kingdoms, the best food and wine, and every form of entertainment available.

How would the previous sentence be correctly capitalized?
King Solomon, the writer of Ecclesiastes, had wealth beyond measure, wisdom beyond any man of his time or ours, hundreds of women, palaces and gardens that were the envy of kingdoms, the best food and wine, and every form of entertainment available.