separated Quiz creation function into smaller functions