#24: scala inner class
#5,#3: merge