Women have played a role in engineering in the United Kingdom for hundreds of years, despite the various societal barriers facing them. In the 18th and 19th century, there were few formal training opportunities for women to train as engineers and frequently women were introduced to engineering through family companies or their spouses. Some women did have more formal educations in the late 19th century and early 20th century, normally in mathematics or science subjects. There are several examples of women filing patents in the 19th century, including Sarah Guppy, Henrietta Vansittart and Hertha Ayrton.