Added a main method so you can see how it compiles and runs with IntelliJ.