Create getLevel.m