First homework

First homework in Ruby