assignment 05: using Q