add weight.java .