Create MainThread.java