Finish prefix.cpp