Just having fun with java and IntelliJ IDEA