This document is a tutorial on modeling a physical system using the LHY model for drug abuse in the Xcos environment of Scilab. It outlines the steps necessary to implement the model, including the mathematical formulation, programming in Xcos, and simulating the model. The tutorial also describes various blocks within Xcos and provides details on setting up and running simulations.