write question implementation