new classes and skript for spectrum analysis