Added some functionality to the Item class