A challenge to write to ruby code to extract data