What book was the musical Hamilton based on?
Hamilton is a sung-and-rapped-through musical with music, lyrics, and a book by Lin-Manuel Miranda, based on the 2004 book Alexander Hamilton by Ron Chernow. The musical tells the story of American Founding Father Alexander Hamilton. Composed over a seven-year period from 2008 to 2015, Miranda says Hamilton was originally a hip hop concept album in his head. The show draws heavily from hip hop, as well as R&B, pop, soul, and traditional-style show tunes. It casts non-white actors as the Founding Fathers of the United States and other historical figures. Miranda described Hamilton as about "America then, as told by America now."
Hamilton, the musical was based on the 2004 book Alexander Hamilton by Ron Chernow.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------
Hamilton is a sung-and-rapped-through musical with music, lyrics, and a book by Lin-Manuel Miranda, based on the 2004 book Alexander Hamilton by Ron Chernow. The musical tells the story of American Founding Father Alexander Hamilton. Composed over a seven-year period from 2008 to 2015, Miranda says Hamilton was originally a hip hop concept album in his head. The show draws heavily from hip hop, as well as R&B, pop, soul, and traditional-style show tunes. It casts non-white actors as the Founding Fathers of the United States and other historical figures. Miranda described Hamilton as about "America then, as told by America now."
----------------
Answer the following query.
What book was the musical Hamilton based on?

user
Hamilton, the musical was based on the 2004 book Alexander Hamilton by Ron Chernow.
assistant