I am not sure if I've ever seen a kind of "stock," second-tier character like Dan-first-season be turned around, fleshed out, and made really interesting and nuanced like Dan has this season. The writers didn't have to do that and most probably wouldn't. Really good work.