Update functionB.m