Added an N-Gon Class and integrated it to the main class.