Converting Transformer into Extension Methods