modified Example.java