the result was that wherever this happened, the bourgeoisie took political power into its own hands and displaced the hitherto ruling classes, the aristocracy, the guildmasters, and their representative, the absolute monarchy.

Please write the text above using proper case.
The result was that wherever this happened, the bourgeoisie took political power into its own hands and displaced the hitherto ruling classes, the aristocracy, the guildmasters, and their representative, the absolute monarchy.