challenge accepted and complete

Ruby solution to challenge 2