removed print statements. constructor PhraseNode requires 'cost' as input. constructor ExemplarNode cannot take 'cost' as input and always has cost=COST_NEW