Finished writing code to answer questions in the GUI