The tea directory has a sample extension that implements the Tcl Extension Architecture (TEA)