created inverse.java