sentence1: When bathing in the sea became popular at the end of the 18th century, wealthy families from Edinburgh began to spend days here taking the waters in state-of-the art bathing machines. 
sentence2: Visiting the seaside became popular in the late 1700s, and bathing machines became popular.