Add method to Jack.java