At least some of those things were imported in the examples that aren't part of the running coding example, so it's not clear to me if I'm making a mistake by not including those imports, or if there's really missing code here.
Can you do me a favour and hit the "Suggest" link at the bottom of the affected page and log the problem there? That way I can keep track of where the problems are.