Actually implemented getInverse