new file created for methods generating graphs