demo and practice for Ruby