Conversation so far:
When did the first engines come about?
In 1776, the first engines were installed and working in commercial enterprises.

Question: How did the engines work?
Self-contained rewrite: How did the engines by James Watt work?