Update trial.cpp