Design and implementation of complex model machine