Check out a clip from the second episode of the animated series from "Community's" Dan Harmon and "Adventure Time's" Justin Roiland.

Rick and his dim grandson Morty are taking on Inception.

In the second episode of Adult Swim's new animated series Rick and Morty, from Community's Dan Harmon and Adventure Time's Justin Roiland, the beer-swigging inventor creates a device to help get his troubled grandson out of math class.

STORY: Dan Harmon on Doing Adult Swim's 'Rick and Morty': 'I Was Between Jobs'

In a bid to give Morty's math teacher dreams of giving the struggling student top marks, Rick invents an Inception-like device and the series takes a swing at the 2010 Christopher Nolan film starring Leonardo DiCaprio and Joseph Gordon-Levitt.

Check out the clip above. Rick and Morty airs on Mondays at 10:30 p.m. on Adult Swim. And in case you missed it, watch the first episode here.

E-mail: Lesley.Goldberg@THR.com

Twitter: @Snoodit