Programme mimicking a vending machine