practice for Ruby class