refactor attempt 1: dynamically create question node