separated histogram and signal code and added class for oscillators