added stepByStep.m