Use Array#select
Use map(&:) methods
Use inject