Class for constructing polygon