[Faris] Added method to write to excel.