Added grid_loss.m