finished remote calc example