text: After its construction in 1639 , it held sessions of the Scottish Parliament until the Act of Union in 1707 , but since the 19th century it has been an integral part of the Scottish Law Courts .
  
  ###
  
  Despite a lot of pushback from the citizens , it was enacted in 1640 .