finished pet and person classes
defined polygon class