Mock-up of Ruby machine.
Designed new mock-up that includes test cases.