Adding code with the updated feature of subjects answering questions from keyboard