finished wanted.cpp