Added license and removed __main__.py also created classes for polygon