Tried out with the bonus question
Switched to Ruby 2.1.2 and fixed some issues