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 .
The bathing machines , while being state-of-the art , sometimes malfunctioned to the dismay of the wealthy families that used them .