Reimplemented attenuator node as a class