Kandy in the 18th century