functions translation to inner classes