more ruby work chapt 6.7