Does't this rotate the one you just added to p?

Does this work?