Update Main.java to parse some text using the full core library features