First working version of transformer