Practice with ATM Idea in Ruby