worked on the homogenous meduim class