This is one of the older programs. Hopefully the coding conventions are up to date. It uses a class to define the individual graphs which is likely a great way to have done it. It's worth a look to ...