added the answers of question-6