Python
# order class should store an id, the customer's name, a list of items, and a
# status
class Order:
    ...


# order manager keeps track of a list of orders and has methods to add, update
# and get orders
class OrderManager:
    def __init__(self):
        ...


    def add_order(self):
        """Adds a new order to the system."""
        ...


    def update_order_status(self, order_id, status):
        ...


    def get_all_orders(self):
        ...


    def get_orders_by_status(self, status) -> list[Order]:
        ...


    def get_summary(self) -> dict:
        ...


# Example usage:
if __name__ == "__main__":
    order1 = Order()
    order2 = Order()
    order3 = Order()


    manager = OrderManager()
    manager.add_order(order1)
    manager.add_order(order2)
    manager.add_order(order3)


    manager.update_order_status(1, "shipped")


    print("All Orders:")
    for order in manager.get_all_orders():
        print(vars(order))


    print("\nShipped Orders:")
    for order in manager.get_orders_by_status("shipped"):
        print(vars(order))


    print("\nOrder Summary:")
    print(manager.get_summary())