Ruby programming exercise with literacy.