first version freq.pl