added OOP based frequency/phase calculator