coin mechanism vending machine function