<P> Ryan goes to his first sales call in "Initiation", where he is subjected to a series of tests by Dwight . Despite his superior education, Ryan is not a good salesman--his first client tells him flat out that he does not like him . </P> <P> In the last scene of "The Job", Ryan receives a call from the New York headquarters, offering him the job previously held by Jan Levinson and making him Michael's immediate superior . After he hangs up, he immediately dumps Kelly . </P> <P> Novak, who also writes for the show, in commenting on the fourth season, said, "we wanted him to dress as obnoxious as possible . As much black as possible .". This season also, for the first time, includes episodes that exhibit Ryan's social life outside the workplace, such as showing his studio apartment in Manhattan . Over the season, he also becomes increasingly arrogant, condescending and ambitious, speaking almost exclusively in business buzzwords . In "Dunder Mifflin Infinity", Ryan presents his concept of Dunder Mifflin Infinity (a new website) to the Scranton branch, and gives a BlackBerry to all of the main employees . He is eager to show off his newfound wealth . His occasional brushes with Kelly remain tense . In "Money, Darryl for the first time expressed his romantic desire for Kelly as he proclaimed to "get excited every time I see that little dude (Ryan) walks through the door". It is also apparent that his new corporate peers also don't care for him; one employee yells at Ryan to get out of his office, and another tells Michael and Dwight, "it was funny to see Ryan all embarrassed". When Ryan is arrested and fired, his peers record all of it on their phones and post it as a hilarious video on YouTube . </P> <P> Later in the season, Ryan's new website is plagued by problems, including child predators and slow sales . The salesmen resist the new site as well . The later episodes show him becoming more excited and on edge, clearly under the influence of cocaine . Feeling threatened by Jim Halpert's good relationship with David Wallace, Ryan conspires against Jim and sets out to get him fired . Ryan also begins dressing more and more unkempt . For example, in the episode "Dunder Mifflin Infinity", he has slick, combed hair, and is very nicely presentable . In later episodes like "Night Out" and "Did I Stutter?", his hair is bedhead, he doesn't wear ties, his face is half shaven, and his shirt is only half buttoned . </P>

When does ryan get fired on the office
find me the text answering this question