source code for digh classes