ruby-basic homework

Hopefully correct hw for ruby-basic