Extract InvertPosting to be a public class in a seperate file because I need to use it in my result.java.