added simple polygon rotate from book