Update Practical5.cpp