creating custom graphs