Designing a vending machine