Check more at https://ronoski.com/product/financial-modelling-theory-implementation-and-practice-with-matlab-source/