Principles Of Matching Functions