how to write an adaptation