Add generate question functionality