Fixed the bugs of the Try.cpp