Modifying particle.cpp