vending machine emulator with minitest TDD