.java file for input class