wrote Product class and subclasses Book, Food, Medicine