deffinition of small inner classes should be at the bottom of class