Add Ruby code from week 1