Exercises done in Ruby