Added polygon class.