Fitting and Simulation of a block multifactor model