Create mainThread.java