created common base class for displaying spectrum data