Complete assign.java file.