add pinheader example + rotate90 utility function