Check in untested draft code of question: Matching Braces