coderbyte solutions in Ruby