keeping main only in control.java.