Compiling and visualizing the model