Replaced Thread with ExecutorService for modernizing

...