Implemented Circle Mode
Extract math related methods to the right class