implementedd freqs class to remove clutter
implementedd freqs class to remove clutter