Implement all types of answer data and refactor code formats