Confidence intervals summarize many hypothesis tests, at least, approximately (or exactly if they arise from direct inversion of the hypothesis tests themselves). Confidence intervals also encourage us to make limits or boundaries on what kinds of hypotheses ought to be understood as plausible (in contrast with $p$-values, where we have only a continuous measure of discordance between the observations and the hypothesis.
The handout for work in class is here.
The commented handout here.
The source code (without my comments) for work in class is here. Using the source code may make cutting and pasting code easier. Plus it allows you to see what Sweave is like.