Modeling Algorythm