Error in the final programming exercise of transformers

Maybe this thread helps you.