added following.java -working