Added traspose function