 CEO David Wallace ( Andy Buckley ) plans on firing Andy Bernard ( Ed Helms ) due to his missing work for acting gigs . However , Andy tells David he is resigning to pursue his dreams of stardom full time , and David is relieved to not have to fire him . Dwight Schrute ( Rainn Wilson ) receives his black belt in karate from his new sensei ( Michael Imperioli ) . Seeing Dwight 's tenacity and devotion , David is inspired to make Dwight Andy 's replacement . 
