Purchase object improved to accept both an integer or String in the constructor for the item identifier.