On using edge computing for computation offloading in mobile network