add class structure for gd files