Implementing Math Service