Demo code for computational offloading