added second class to polygon