added permutations example from book