Reported speech ! Please !

Answer:
My father looked at me in anger and said "Where have you been so long and why are you wasting your time?" After a moment he said "Will you not appear in the final examination."
I said "I went to my friend's house to borrow an essential book, but he was not at home. So I had to wait for him."
Hope this help you.
Please correct me if this answer is incorrect.