refactoring to store questions in json