Add average property to base class and relative attribute to frequency class