refactored object code to show question number