All boys were educated for free from 1555 onwards. This was paid for by the local trade guilds. All girls were educated from 1820, a long time after the boys, but a very early example of free education for females (only required by law from 1876). A free hospital service was provided from 1777, paid for by a local tax, with beds sponsored by local shops. Leith had electric street lighting from 1890 and electric trams from 1905 (only Blackpool was earlier in the UK). The first public sewer in Scotland was built in Bernard Street in 1780; this flowed into the Water of Leith. The iron seal over the end of the sewer is still visible next to Bernard Street bridge. The sewage is now pumped in the opposite direction (it was laid to fall westwards) to Seafield.