Between 1704–1712 a brick wall was built around the Dockyard, following the line of the town's 17th-century fortifications; together with a contemporary (though altered) gate and lodge, much of the wall still stands, serving its original purpose. A terrace of houses for the senior officers of the yard was built at around this time (Long Row, 1715–19); later in the century it was joined by a further terrace (Short Row, 1787). In 1733 a Royal Naval Academy for officer cadets was established within the Dockyard, the Navy's first shore-based training facility and a forerunner of Britannia Royal Naval College in Dartmouth.