A nitrogen analog of the Claisen rearrangement