a talent agent while singing and dancing at the Los Angeles restaurant Taste of L.A. Cosgrove says that when the agent approached her and her mother, she had "never really thought of being an actress" and "was lucky". She then appeared in numerous television commercials for McDonald's and Mello Yello, and also modeled for various brands. At the age of seven, she began auditioning for theater and television roles. Her first television appearance was in 2001 when she provided the voice of young Lana Lang in the pilot episode of Smallville. Cosgrove made her film debut in School of Rock (2003), directed by Richard Linklater. In the movie, she played Summer Hathaway, a young girl with great ambition and discipline who finds herself adjusting to the free-spirited nature of her new music teacher (Jack Black). School of Rock was both a box office hit, grossing over $130 million worldwide, and a critical success, receiving a score of 91% on Rotten Tomatoes. Cosgrove's acting in the film received praise, with David Ansen of Newsweek describing it as "spot on". She cited the scene in which her character tries to sing as particularly difficult: "[I'd] been taking singing lessons for about five years, so getting to sing badly was new. The director kept saying, 'Try to sing even worse, Miranda,' so it was weird." 2004–2009: Rise to prominence In 2004, Cosgrove landed her first major role in a television series when she was cast in the Nickelodeon series Drake & Josh, alongside Drake Bell and Josh Peck. In the series, she portrayed Megan Parker, the mischievous younger sister of the title characters. In 2005, Cosgrove was awarded the role of Munch in the Cartoon Network film Here Comes Peter Cottontail: The Movie. In the film, Cosgrove portrays a female mouse who is rescued from a hawk by Junior and Flutter and who goes on to join them on their adventure. Cosgrove also guest-starred on two episodes of the animated comedy, Lilo & Stitch: The Series. She also received her second major role in a theatrical film when she cast alongside her Drake & Josh co-star Drake Bell in the comedy film Yours, Mine & Ours. The film performed mildly at the box office. Yours, Mine & Ours opened in third place, earning $17 million at the U.S. box office during its first weekend. Cosgrove's third theatrical release, Keeping Up with the Steins,