get_question method added to DRY code