Create DeviceFactory.java