adding in sample results plus graphics code