In Chapter 6 of "Quantum Computation and Quantum Information" textbook by Nielsen and Chuang, Exercise 6.5 p.255:
We have an oracle gate $O$ for $n$ qubit ($2^n=N$ searching items), and we would like to construct new oracle gate $O'$ for $n+1$ qubit ($2^{n+1}=2N$ searching items) using oracle gate $O$ and extra bit $|q\rangle$ so that new oracle gate $O'$ should mark an item only if it is solution for the oracle gate $O$ and extra bit $|q\rangle$ is $|0\rangle$.
The exact question in the Nielsen and Chuang textbook as follows:
A new augmented oracle $O'$ is constructed which marks an item only if it is a solution to the search problem and the extra bit is set to zero.
Exercise 6.5: Show that the augmented oracle $O'$ may be constructed using one application of $O$, and elementary quantum gates, using the extra qubit $|q\rangle$.
Possible not very good solutions:
The problem with this solution is related to the fact that it requires to open up an Oracle gate $O$ in order to "control" it.
Does anybody have an idea of how to construct gate $O'$ using "pure" gate $O$ without "open up" them?