sdt chapter 3 solutions for review

no loop makes this much clearer