adapting a book to a movie script