adding functions to create questions and answers