Create TerminalFactory.java