Setting simulation environment - import code from lessons