Programs for Ruby Class