implemented buying snacks by id