nested and inner classes is done