Reviewed and Slightly Edited Chpt 1 Test Code