freqs function

Frequencies Calculations and Plot