Update J.cpp