ruby learn by example