Added code in main to create an executor service and submit all the
created Tasks to that service.