Digram, source code