added example on pivoting