A small register coded in Ruby