Homework for first day in ruby.

Signed-off-by: invisiblewei <invisiblewei@gmail.com>