changed assemble_matrix to be the __call__ method
__call__ instead of calculate_freqs