n -ary Relations &amp; Their Applications