import pygame class Shelf: def __init__(self, id, field): self.id = id self.field = field self.products = [] def addProduct(self, sweet): self.products.append(sweet)