connection script for Vending Machine