class decimac: the decimal machine