This is a final version of the Home Work #1 for Ruby Garage, Kyiv, Jan. 21st, 2013