Transpose function added