High Street and North Street. In 1819, Dr Gray's Hospital was built on unused ground. The building has imposing columns and distinctive dome. Dr Alexander Gray, a doctor who worked for and made his fortune with the East India Company, endowed £26,000 for the hospital. In 1828 the new parish church of St Giles was built at a cost of £10,000. L. General Andrew Anderson, born in Elgin, also of the East India Company, died in 1824 and bequeathed £70,000 to the town to found an institution for the welfare of the elderly poor and for the education of orphans. The Anderson Institution was built in the east end of the town in 1832 with accommodation for 50 children and ten elderly people. The Burgh Court House was built in 1841, the museum was completed in 1842 and Elgin Sheriff Court was built in 1866. The Morayshire Railway was officially opened in ceremonies at Elgin and Lossiemouth on 10 August 1852, the steam engines having been delivered to Lossiemouth by sea. It was the first railway north of Aberdeen and initially ran only between Elgin and Lossiemouth. It was later extended south to Craigellachie. The Great North of Scotland Railway took over the working of the line in 1863 and bought the company in 1881 following the Morayshire Railway's return to solvency from crippling debt. The town was becoming prosperous, and by 1882 it had a Head Post Office with a savings bank, insurance and telegraph departments, and branches of the Bank of Scotland and the British Linen Company, Caledonian, Commercial, North of Scotland, Royal and Union Banks, and the National Securities Savings Bank, offices or agencies of 48 insurance companies, five hotels, and a newspaper. The Cooper Park drill hall was completed in 1908. The war memorial in Elgin dates from 1921 and represents "Peace and Victory". It was designed by Percy Portsmouth. Geography and geology The modern town straddles the River Lossie, with the suburbs of Bishopmill to the north and New Elgin to the south. Permo–Triassic rocks, rare in Scotland, are commonly found around Elgin. These are composed of aeolian sandstone formed when this area was subjected to desert conditions. Quarry Wood, on the town's edge, has a formation nicknamed Cuttie's Hillock which produced the internationally known fossils called the Elgin Reptiles. In the Elgin district, boulders belonging to the lowest group of Jurassic strata, Oxford clay