Implementation of the synacor challenge in ruby.