wrote section on permutations and transpose