write the selectexecutor.java