added Executor and sample Main.java