Learning Product for Grammar