The Rose Garden was popping today when Hamilton creator and star Lin-Manuel Miranda stopped by to perform a freestyle rap with a presidential twist. As it turned out, President Obama was holding all the cue cards for Miranda to incorporate into his lyrics. After Obama's declaration to "drop the beat," Miranda had to pop in a wide assortment of words, from the funny ("Sonny and Bo") to the historical ("the Federalist Papers") to the politically current ("Supreme Court"). Considering the pressure of the situation, Miranda does a pretty great job of threading together some complex words to make a very entertaining freestyle.

The freestyle showcase was part of a special visit by the cast of Hamilton to the White House, where they performed some songs from their hit Broadway musical.

"Opportunity knocks and I can't stop/I'm here with the president and my pops/And yo the mic drops," rapped at the end. Afterwards, President Obama laughed and made an accurate prediction. "Do you think that's going viral?" he asked. "That's going viral."

You can check out the pair's fun-filled "Rose Garden Freestyle" performance in the video clip below.