basic polygon() implemented