creating tweakable class and adding attenuation