added rrmain.java