added exceptions to Item and added to the test code in main.cc