changed computer type length validation
finished ch9
Merge pull request #5 from chenjiayuan/jchen

finished ch9