completing calEfficiency.m