Let’s create a class called ScaleAndOffsetConverter that is just like ScaleConverter, but with afactor as well as anoffset. One way to do this would simply be to copy the whole of the code forScaleConverter and change it a bit by adding the extra variable. It might, in fact, look something like this: