Cross product and polygon class working