add two Fragments.java file for code fragment