Weekly Tutorial Exercises done in Ruby instead of C++