Constructor created and began implementing getFrequency