add code and graphs