sdt chapter 3 solutions for review

Good protection against massive input (from file)