Update np.cpp

2nd assignmnt