Exercicios 1, 2, 3 e 4 do rubylearning.com