[calculator] Moved all methods to resource method