made changes to practice.cpp