Change Transformer to implements contract