Create Q to be solve