What is described is a dishwasher (1) comprising a body (2), at least one rack (3) placed into the body (2), having a base and side walls (4) surrounding the base and wherein the objects to be washed are placed, at least one shelf (7), mounted to the side walls (4) of the rack (3), having a carrying surface (5) whereon kitchenware like cups, glasses etc can be placed. At least one slot (8) with both ends closed is located on the shelf (7) and an auxiliary element (10) having at least one pin (9) that can both rotate and slide inside the slot (8) is folded over the carrying surface (5) by being rotated around the pin (9) when the pin (9) is rested against any end of the slot (8).