Task 18. TODO: Decorate. Write result in file.