code from dynamic interfaced class