coded the corpus builder