code: def slice_hash(hash, *keys)
        return {} if keys.length.zero?
  
        new_hash = {}
        hash.each do |key, value|
          new_hash[key] = value if keys.include? key
        end
        new_hash
      end
docs: Slice keys from hash
   @param [Hash] hash A hash to slice key/value pairs from
   @param [Array] *keys The keys to be sliced
   @return Hash filtered by keys