In this video, I have explained a problem statement. The solution is implemented using summation and if elseif else blocks from simulink library. It also explains from and goto blocks use. It also covers a little bit introduction to callbacks of model.