implemented and tested DIG structure