Finished Ruby codesamples.