Folded classes into single class attribute