Learning a bit of ruby along the way